﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Org.Eurekaa.DNJ.UI.Common;
using Org.Eurekaa.DNJ.Common;

public partial class UIDemos_DNJSlider : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            Helpers.PopulateDropDown(DDlOrientation, typeof(EnmOrientation));
            DDlOrientation.SelectedIndex = Convert.ToInt32(DNJSlider1.Settings.Orientation);
        }
    }

    protected void Page_PreRender(object sender, EventArgs e)
    {
    }
    protected void chkAnimated_CheckedChanged(object sender, EventArgs e)
    {
        DNJSlider1.Settings.Animate = chkAnimated.Checked;
    }
    protected void DDlOrientation_SelectedIndexChanged(object sender, EventArgs e)
    {        
        DNJSlider1.Settings.Orientation = (EnmOrientation)Enum.Parse(typeof(EnmOrientation), DDlOrientation.SelectedValue);
    }
}
